package Factory.framework;


/**
 * <p>Title Factory</p>
 *
 * @author YiMing Liu
 * @date 2018/6/9 18:56
 * <p>Description:</p>
 */
public abstract class Factory {

    public final Product create(String owner){
        Product product = createProduct(owner);
        registerProduct(product);

        return product;
    }

    public abstract Product createProduct(String owner);
    public abstract void registerProduct(Product product);
    public abstract Integer getTotal();
}
